﻿using System;
using UnityEngine;

namespace ParticlePlayground
{
	// Token: 0x02000164 RID: 356
	[Serializable]
	public class WorldObjectBaseC
	{
		// Token: 0x0600085A RID: 2138 RVA: 0x00031788 File Offset: 0x0002F988
		public virtual void UpdateMatrix(bool isLocal)
		{
			this.transformMatrix.SetTRS((!isLocal) ? this.transform.position : Vector3.zero, (!isLocal) ? this.transform.rotation : Quaternion.identity, (this.scaleMethod != ScaleMethod.Local) ? this.transform.lossyScale : this.transform.localScale);
		}

		// Token: 0x04000850 RID: 2128
		public GameObject gameObject;

		// Token: 0x04000851 RID: 2129
		[HideInInspector]
		public Transform transform;

		// Token: 0x04000852 RID: 2130
		[HideInInspector]
		public Rigidbody rigidbody;

		// Token: 0x04000853 RID: 2131
		[HideInInspector]
		public MeshFilter meshFilter;

		// Token: 0x04000854 RID: 2132
		[HideInInspector]
		public Mesh mesh;

		// Token: 0x04000855 RID: 2133
		[HideInInspector]
		public Vector3[] vertexPositions;

		// Token: 0x04000856 RID: 2134
		[HideInInspector]
		public Vector3[] normals;

		// Token: 0x04000857 RID: 2135
		[HideInInspector]
		public bool updateNormals;

		// Token: 0x04000858 RID: 2136
		[NonSerialized]
		public int cachedId;

		// Token: 0x04000859 RID: 2137
		[NonSerialized]
		public bool initialized;

		// Token: 0x0400085A RID: 2138
		[HideInInspector]
		public Matrix4x4 transformMatrix = default(Matrix4x4);

		// Token: 0x0400085B RID: 2139
		[HideInInspector]
		public ScaleMethod scaleMethod;
	}
}
